<!-- target: shopForm(master = formPage) -->
<!-- block: crumb -->
    <!-- import: shopFormCrumb -->
<!-- /block -->
<!-- block: formMain -->
    <!-- import: shopFormMain -->
<!-- /block -->

<!-- target: shopFormCrumb(master = crumb) -->
<!-- block: path -->
    <span>零售商户管理</span>
    <span><!-- if: ${formType} === 'create' -->新增<!-- else: -->编辑<!-- /if -->零售商户</span>
<!-- /block -->

<!-- target: shopFormMain(master = customFormView) -->
<!-- block: sections -->
    <!-- import: shopBaseContent -->
<!-- /block -->
<!-- block: submitSection -->
<button type="submit" data-ui-type="Button" data-ui-id="submit" data-ui-group="submit" data-ui-variants="warning wide" class="submit-button">确认提交</button>
<!-- /block -->

<!-- target: shopBaseContent -->
<section class="form-section">

    <div class="ui-form-row">
        <!-- use:
            textboxField(
                field = 'username',
                title = '登录用户名',
                length = 80,
                width = 200,
                required = true,
                description = '用户名不能修改'
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            textboxField(field = 'name', title = '商户名称', length = 120, width = 300, required = true)
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            textboxField(
                field = 'company',
                title = '公司名称',
                length = 120,
                width = 300
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            toggleSelectField(
                id = 'mall',
                field = 'mallid',
                width = 200,
                title = '购物中心',
                datasource = 'mallList'
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            textboxField(
                field = 'address', title = '地址', width = 500
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            formPerson(field = 'chargePerson', title = '负责人员')
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            formPerson(field = 'legalPerson', title = '法人代表')
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            logoField(
                title = '品牌LOGO',
                id = 'logo',
                field = 'logoType',
                fieldType = ${logoPic | indexOf('http')} === 0 ? 'pic' : 'text',
                uploadUrl = ${uploadUrl},
                textRequired = true,
                radioTab = true
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            uploaderWithPreviewField(
                field = 'gatePic', title = '店铺门头照片', imageWidth = 250,
                uploadUrl = ${uploadUrl}, required = true,
                descriptions = ['图片尺寸不低于400*200，推荐800*400', '单张图片大小不超过300k']
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            uploaderWithPreviewField(
                field = 'businessLicensePic', title = '营业执照', imageWidth = 250,
                uploadUrl = ${uploadUrl}, required = true,
                descriptions = ['单张图片大小不超过1M']
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            uploaderWithPreviewField(
                field = 'taxPic', title = '税务登记证', imageWidth = 250,
                uploadUrl = ${uploadUrl}, required = true,
                descriptions = ['单张图片大小不超过1M']
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            uploaderWithPreviewField(
                field = 'idPic1', title = '身份证正面', imageWidth = 250,
                uploadUrl = ${uploadUrl}, required = true,
                descriptions = ['图片尺寸不低于400*200，推荐800*400', '单张图片大小不超过300k']
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            uploaderWithPreviewField(
                field = 'idPic2', title = '身份证背面', imageWidth = 250,
                uploadUrl = ${uploadUrl}, required = true,
                descriptions = ['图片尺寸不低于400*200，推荐800*400', '单张图片大小不超过300k']
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            uploaderWithPreviewField(
                field = 'qrcode', title = '公众号二维码', imageWidth = 200,
                uploadUrl = ${uploadUrl}, required = true,
                descriptions = ['请从微信个人信息中获取二维码图片上传']
            )
        -->
    </div>

</section>

